package com.lyf.design.learn.designmodel.adaptor;

/**
 * @AUTHOR LYF
 * @DATE 2022/6/3
 * @VERSION 1.0
 * @DESC
 */
public class AmericaCharge extends Charge{
    @Override
    void charge(String user) {
        if(!"110V".equals(user)){
            System.out.println("不能充电,请使用正确电压---充电");
        }else{
            System.out.println("开始充电....");
        }
    }
}
